//
//  Timer.m
//  Stock_Pro
//
//  Created by CH on 11-1-28.
//  Copyright 2011 gaotime. All rights reserved.
//

#import "TimerOper.h"
#import "Tools.h"


@implementation TimerOper

@synthesize pTimer, pCall, bLoop;

- (id) init{
	
	pCall = (TimeCallBack *)Tools_Malloc(sizeof(TimeCallBack));
	return self;
}
-(void)CallBack:(NSTimer*)t{
  if (!bLoop) {
    pTimer = nil; 
  }
	if (pCall->pCallBack) {
		pCall->pCallBack(pCall->pCBObj);
	}
}

@end
